package com.rainng.coursesystem.controller.teacher;

import com.rainng.coursesystem.config.themis.annotation.Teacher;
import com.rainng.coursesystem.controller.BaseController;
import com.rainng.coursesystem.model.vo.response.ResultVO;
import com.rainng.coursesystem.service.teacher.AnswerService;
import com.rainng.coursesystem.service.teacher.ExamService;
import io.swagger.models.auth.In;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Teacher
@RequestMapping("/teacher/homework/answers")
@RestController
public class AnswerController extends BaseController {


    @Autowired
    private AnswerService answerService;

    @GetMapping("/{homeworkId}")
    public ResultVO listAnswer(@PathVariable Integer homeworkId){

       return answerService.listAnswer(homeworkId);

    }


}
